package com.sourny.auth;

import com.sourny.auth.interceptor.FeignSecurityAuthRequestInterceptor;
import feign.Contract;
import feign.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.openfeign.AnnotatedParameterProcessor;
import org.springframework.cloud.openfeign.FeignLoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.convert.ConversionService;

import java.util.ArrayList;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author
 * @create 2018-05-05 下午 4:43
 **/
@Configuration
public class FeignContractConfig {

    @Bean
    public FeignSecurityAuthRequestInterceptor feignBasicAuthRequestInterceptor() {
        return new FeignSecurityAuthRequestInterceptor();
    }

}
